package core.conditions;

import server.querry.Condition;
import dal.Pet_type;

public class PetsByTypeCondition implements Condition{
	
	private static final long serialVersionUID = 3304232910365869641L;

	// keeps type of pet  
	private int typeId;

	@Override
	public String getQuerry() {
		return "SELECT x from pets x WHERE x.pet_type = (SELECT petType FROM pet_types petType WHERE petType.id = " +typeId + ")";
	}
	
	
}
